import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqIntHelper } from "./SeqIntHelper";
import { SEntityId } from "./SEntityId";
import { SPublicMiniPlayer } from "./SPublicMiniPlayer";
type int = number;
//class SCrossSeaKill
    
    export  class SCrossSeaKill extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SCrossSeaKill();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            this.toEntityId.__write(arg1);
            this.miniPlayer.__write(arg1);
            arg1.writeString(this.positionName);
            arg1.writeInt(this.updateType);
            arg1.writeInt(this.contriFactor);
            arg1.writeInt(this.contribution);
            SeqIntHelper.write(arg1, this.itemCodes);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.toEntityId = new SEntityId();
            this.toEntityId.__read(arg1);
            this.miniPlayer = new SPublicMiniPlayer();
            this.miniPlayer.__read(arg1);
            this.positionName = arg1.readString();
            this.updateType = arg1.readInt();
            this.contriFactor = arg1.readInt();
            this.contribution = arg1.readInt();
            this.itemCodes = SeqIntHelper.read(arg1);
            return;
        }

        public /* const */_type: int=842;

        public /* var */toEntityId: SEntityId;

        public /* var */miniPlayer: SPublicMiniPlayer;

        public /* var */positionName: string;

        public /* var */updateType: int;

        public /* var */contriFactor: int;

        public /* var */contribution: int;

        public /* var */itemCodes: Array<any>;

        public static /* var */_regist: SCrossSeaKill;
    }

            SCrossSeaKill._regist = new SCrossSeaKill(true);
        